$(function(){
	
	// 当前相册
	let currentAlbum;
	let albumId = localStorage.getItem("albumId");
	for(a of mAlbumList){
		if(a.id == albumId){
			currentAlbum = a;
			break;
		}
	}
	// 初始化
	function init(){
		$('.title').text(currentAlbum.title);
		$('.desc').text(currentAlbum.detail);
		let album;
		for(p of a.photos){
			
			album = `
				<div class="col-lg-4 col-md-4 col-sm-6 col-xs-6 album-item">
					<img src=${p} class="img-responsive">
				</div>
			`
			$('.album').append(album);
		}
		
	}
	init();
	
})